# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-pyinquirer
_pkgname=PyInquirer
pkgver=1.0.3
_pyver=3.13
pkgrel=9
pkgdesc='A Python module for common interactive command line user interfaces.'
arch=('any')
url='https://github.com/CITGuru/PyInquirer'
license=('MIT')
depends=('python' 'python-pygments' 'python-prompt_toolkit' 'python-regex')
makedepends=('git' 'python-setuptools')
source=("https://github.com/CITGuru/PyInquirer/archive/$pkgver.tar.gz")
sha512sums=('d94f328715801296759402a82b80fdbb586be1244f4542cde84ec07761d73500f63355f2d4466e9fcc85d11e64553cf82f6a19fe6a7a0399bea3e4f1cb144b98')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build

  rm -rf "$pkgdir/usr/lib/python$_pyver/site-packages/examples"
}

